package lab02.test37;

public class Student {

    String ID;
    String name;
    double math;
    double english;
    double computer;

    public Student(String ID, String name,double math,
                   double english,double computer){
        this.ID = ID;
        this.name = name;
        this.math = math;
        this.english = english;
        this.computer = computer;
    }

    public Student() {

    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMath() {
        return math;
    }

    public void setMath(double math) {
        this.math = math;
    }

    public double getEnglish() {
        return english;
    }

    public void setEnglish(double english) {
        this.english = english;
    }

    public double getComputer() {
        return computer;
    }

    public void setComputer(double computer) {
        this.computer = computer;
    }

    public double average(double math,double english,double computer){
        return (math+english+computer)/3;
    }




}
